package com.gs.thunder.service;

import com.gs.thunder.entity.*;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2018/1/3 0003
 */
//主体责任单位信息子系统
@Service
public interface RUIService {

    //防雷单位
    void addUnitInfo(RUIUnitInfo unitInfo);
    void updateUnitInfo(RUIUnitInfo unitInfo);
    void deleteUnitInfo(Integer id);

    List<RUIUnitInfo> getImportantRUIUnitInfoWithPage(Integer pageNum, Integer pageSize);
    List<RUIUnitInfo> getNormalRUIUnitInfoWithPage(Integer pageNum, Integer pageSize);

    //根据单位名
    List<RUIUnitInfo> getImportantRUIUnitInfoByNameWithPage(String name,Integer pageNum, Integer pageSize);
    List<RUIUnitInfo> getNormalRUIUnitInfoByNameWithPage(String name,Integer pageNum, Integer pageSize);
    //根据乡镇名
    List<RUIUnitInfo> getImportantRUIUnitInfoByCountyWithPage(String county,Integer pageNum, Integer pageSize);
    List<RUIUnitInfo> getNormalRUIUnitInfoByCountyWithPage(String county,Integer pageNum, Integer pageSize);

    //撤销重点
    void removeUnitImportant(Integer id);
    //添加重点
    void addUnitImportant(Integer id);

    //防雷场所
    void addUnitPlace(RUIUnitPlace place);
    void updateUnitPlace(RUIUnitPlace place);
    void deleteUnitPlace(Integer id);
    List<RUIUnitPlace> getRUIUnitPlaceByUnitIdWithPage(Integer unitId,Integer pageNum,Integer pageSize);
    List<RUIUnitPlace> getRUIUnitPlaceByUnitIdAndNameWithPage(Integer unitId,String name,Integer pageNum,Integer pageSize);


    //防雷建筑物
    void addPlaceBuilding(RUIPlaceBuilding building);
    void updatePlaceBuilding(RUIPlaceBuilding building);
    void deletePlaceBuilding(Integer id);
    List<RUIPlaceBuilding> getRUIPlaceBuildingByPlaceIdWithPage(Integer placeId,Integer pageNum,Integer pageSize);
    List<RUIPlaceBuilding> getRUIPlaceBuildingByPlaceIdAndNameWithPage(Integer placeId,String name,Integer pageNum,Integer pageSize);

    //存放危化品信息
    void addPlaceDangerous(RUIPlaceDangerous dangerous);
    void updatePlaceDangerous(RUIPlaceDangerous dangerous);
    void deletePlaceDangerous(Integer id);
    List<RUIPlaceDangerous> getRUIPlaceDangerousByPlaceIdWithPage(Integer placeId);
    //危化品名称
    List<RUIPlaceDangerous> getRUIPlaceDangerousByPlaceIdAndNameWithPage(Integer placeId, String name,Integer pageNum,Integer pageSize);


    //建筑物检测信息
    void addPlaceCheck(RUIPlaceCheck placeCheck);
    void updatePlaceCheck(RUIPlaceCheck placeCheck);
    void deletePlaceCheck(Integer id);
    List<RUIPlaceCheck> getRUIPlaceCheckByPlaceIdWithPage(Integer placeId,Integer pageNum,Integer pageSize);
    //检测时间
    List<RUIPlaceCheck> getRUIPlaceCheckByPlaceIdAndTimeWithPage(Integer placeId,String time,Integer pageNum,Integer pageSize);





}
